package cn.xlbweb.sso.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;

/**
 * @author: bobi
 * @date: 2019-03-24 20:13
 * @description:
 */
@RestController
public class LogoutController {

    @GetMapping("logout")
    public void logout(HttpSession session) {
        session.invalidate();
    }
}
